package com.ruoyi.web.controller.example;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.exception.BlizException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "异常测试")
@Anonymous
@RestController
public class ExceptionController {
    @GetMapping("TestBlizException")
    @ApiOperation(value = "blizException测试")
    public AjaxResult TesBizException(){
        throw new BlizException(500,"这是blizException");
    }
}
